[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Function getc_match - get specific input, case dependent
Syntax char getc_match(boolean output, char *match);
Prototype in keyboard.h
Remarks getc_match accepts character input (via getk())
until one of the characters in the string match in
entered, case dependent ('a' != 'A'). Extended keys
never match (F10 will never be a match.) If output
= TRUE, the character is echoed to the screen via
putk().
Return value returns the key pressed.
See also getci_match(), getk(), getlogical(), getyn()
Example #include <keyboard.h>
main()
{
printf("Enter your choice (abcdHJ): ");
getc_match(1,"abcdHJ");
}
Program output Enter your choice (abcdHJ): H
See Also:
getci_match()
getk()
getlogical()
getyn()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson